package com.dianping.cat.core.dal;

import java.util.Date;
import org.unidal.dal.jdbc.DataObject;































public class Task
  extends DataObject
{
  private int m_id;
  private String m_producer;
  private String m_consumer;
  private int m_failureCount;
  private String m_reportName;
  private String m_reportDomain;
  private Date m_reportPeriod;
  private int m_status;
  private int m_taskType;
  private Date m_creationDate;
  private Date m_startDate;
  private Date m_endDate;
  private int m_keyId;
  private int m_count;
  private int m_startLimit;
  private int m_endLimit;
  
  public void afterLoad() {
/*  57 */     this.m_keyId = this.m_id;
/*  58 */     clearUsage();
  }

  
/*  62 */   public String getConsumer() { return this.m_consumer; }



/*  66 */   public int getCount() { return this.m_count; }



/*  70 */   public Date getCreationDate() { return this.m_creationDate; }



/*  74 */   public Date getEndDate() { return this.m_endDate; }



  public int getEndLimit() { return this.m_endLimit; }



/*  82 */   public int getFailureCount() { return this.m_failureCount; }



/*  86 */   public int getId() { return this.m_id; }



/*  90 */   public int getKeyId() { return this.m_keyId; }



/*  94 */   public String getProducer() { return this.m_producer; }



/*  98 */   public String getReportDomain() { return this.m_reportDomain; }



/* 102 */   public String getReportName() { return this.m_reportName; }



/* 106 */   public Date getReportPeriod() { return this.m_reportPeriod; }



/* 110 */   public Date getStartDate() { return this.m_startDate; }



/* 114 */   public int getStartLimit() { return this.m_startLimit; }



/* 118 */   public int getStatus() { return this.m_status; }



/* 122 */   public int getTaskType() { return this.m_taskType; }

  
  public Task setConsumer(String consumer) {
/* 126 */     setFieldUsed(TaskEntity.CONSUMER, true);
/* 127 */     this.m_consumer = consumer;
/* 128 */     return this;
  }
  
  public Task setCount(int count) {
/* 132 */     setFieldUsed(TaskEntity.COUNT, true);
/* 133 */     this.m_count = count;
/* 134 */     return this;
  }
  
  public Task setCreationDate(Date creationDate) {
/* 138 */     setFieldUsed(TaskEntity.CREATION_DATE, true);
/* 139 */     this.m_creationDate = creationDate;
/* 140 */     return this;
  }
  
  public Task setEndDate(Date endDate) {
/* 144 */     setFieldUsed(TaskEntity.END_DATE, true);
/* 145 */     this.m_endDate = endDate;
/* 146 */     return this;
  }
  
  public Task setEndLimit(int endLimit) {
/* 150 */     setFieldUsed(TaskEntity.END_LIMIT, true);
/* 151 */     this.m_endLimit = endLimit;
/* 152 */     return this;
  }
  
  public Task setFailureCount(int failureCount) {
/* 156 */     setFieldUsed(TaskEntity.FAILURE_COUNT, true);
/* 157 */     this.m_failureCount = failureCount;
/* 158 */     return this;
  }
  
  public Task setId(int id) {
/* 162 */     setFieldUsed(TaskEntity.ID, true);
/* 163 */     this.m_id = id;

/* 165 */     setFieldUsed(TaskEntity.KEY_ID, true);
/* 166 */     this.m_keyId = id;
/* 167 */     return this;
  }
  
  public Task setKeyId(int keyId) {
/* 171 */     setFieldUsed(TaskEntity.KEY_ID, true);
/* 172 */     this.m_keyId = keyId;
/* 173 */     return this;
  }
  
  public Task setProducer(String producer) {
/* 177 */     setFieldUsed(TaskEntity.PRODUCER, true);
/* 178 */     this.m_producer = producer;
/* 179 */     return this;
  }
  
  public Task setReportDomain(String reportDomain) {
/* 183 */     setFieldUsed(TaskEntity.REPORT_DOMAIN, true);
/* 184 */     this.m_reportDomain = reportDomain;
/* 185 */     return this;
  }
  
  public Task setReportName(String reportName) {
/* 189 */     setFieldUsed(TaskEntity.REPORT_NAME, true);
/* 190 */     this.m_reportName = reportName;
/* 191 */     return this;
  }
  
  public Task setReportPeriod(Date reportPeriod) {
/* 195 */     setFieldUsed(TaskEntity.REPORT_PERIOD, true);
/* 196 */     this.m_reportPeriod = reportPeriod;
/* 197 */     return this;
  }
  
  public Task setStartDate(Date startDate) {
/* 201 */     setFieldUsed(TaskEntity.START_DATE, true);
/* 202 */     this.m_startDate = startDate;
/* 203 */     return this;
  }
  
  public Task setStartLimit(int startLimit) {
/* 207 */     setFieldUsed(TaskEntity.START_LIMIT, true);
/* 208 */     this.m_startLimit = startLimit;
/* 209 */     return this;
  }
  
  public Task setStatus(int status) {
/* 213 */     setFieldUsed(TaskEntity.STATUS, true);
/* 214 */     this.m_status = status;
/* 215 */     return this;
  }
  
  public Task setTaskType(int taskType) {
/* 219 */     setFieldUsed(TaskEntity.TASK_TYPE, true);
/* 220 */     this.m_taskType = taskType;
/* 221 */     return this;
  }

  
  public String toString() {
/* 226 */     StringBuilder sb = new StringBuilder(1024);

/* 228 */     sb.append("Task[");
/* 229 */     sb.append("consumer: ").append(this.m_consumer);
/* 230 */     sb.append(", count: ").append(this.m_count);
/* 231 */     sb.append(", creation-date: ").append(this.m_creationDate);
/* 232 */     sb.append(", end-date: ").append(this.m_endDate);
/* 233 */     sb.append(", end-limit: ").append(this.m_endLimit);
/* 234 */     sb.append(", failure-count: ").append(this.m_failureCount);
/* 235 */     sb.append(", id: ").append(this.m_id);
/* 236 */     sb.append(", key-id: ").append(this.m_keyId);
/* 237 */     sb.append(", producer: ").append(this.m_producer);
/* 238 */     sb.append(", report-domain: ").append(this.m_reportDomain);
/* 239 */     sb.append(", report-name: ").append(this.m_reportName);
/* 240 */     sb.append(", report-period: ").append(this.m_reportPeriod);
/* 241 */     sb.append(", start-date: ").append(this.m_startDate);
/* 242 */     sb.append(", start-limit: ").append(this.m_startLimit);
/* 243 */     sb.append(", status: ").append(this.m_status);
/* 244 */     sb.append(", task-type: ").append(this.m_taskType);
/* 245 */     sb.append("]");
/* 246 */     return sb.toString();
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/core/dal/Task.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */